//
//  HYTextField.m
//  HYApp
//
//  Created by iBest on 2017/3/22.
//  Copyright © 2017年 BaiCai. All rights reserved.
//

#import "HYTextField.h"
#import "JFKitPri.h"

@implementation HYTextField

-(void)setCustomKeyboard:(HYTextField *)keyboard{
    
}

//控制placeHolder的位置，左右缩20
-(CGRect)placeholderRectForBounds:(CGRect)bounds{
    
    CGRect inset = CGRectMake(bounds.origin.x+36, bounds.origin.y+5, bounds.size.width -15, bounds.size.height);//更好理解些
    return inset;
}

//控制placeHolder的颜色、字体
- (void)drawPlaceholderInRect:(CGRect)rect{
    
    [[self placeholder] drawInRect:rect withAttributes:@{NSForegroundColorAttributeName: [UIColor awColorWithHexString:@"#BDC6D5"],NSFontAttributeName:[UIFont systemFontOfSize:16]}];
     
}

-(void)drawRect:(CGRect)rect{
    
    UIImage * backgroudImage = [UIImage imageWithColor:[UIColor awColorWithHexString:@"#4C6FBC"] size:CGSizeMake(200, 25) ];
    [backgroudImage drawInRect:[self bounds]];

}


@end
